<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<div id="header" class="container">
    <div id="logo">
        <h1><a href="#">Kurak's </a></h1>
        <p>We can fly!</p>
    </div>
    <div id="menu">
        <ul id="nav">
            <li><a href="/index">Homepage</a></li>
            <li><a href="#">Booking</a>
                <ul>
                    <li><a href="/findFlight">Booking</a></li>
                    <li><a href="/shedule">Shedule</a></li>
                </ul>
            </li>
            <li><a href="#">Information</a>
                <ul>
                    <li><a href="/flights?sort=id">Flights</a></li>
                    <li><a href="/airports">Airports</a></li>
                    <li><a href="/cities">Cities</a></li>
                    <li><a href="/countries">Countries</a></li>
                    <li><a href="/planes">Planes</a></li>
                </ul>
            </li>
            <li><a href="#">About</a></li>
            <c:if test="${showAuth == 0}">
                <li><a href="/login">Login</a></li>
            </c:if>
            <c:if test="${showAuth != 0}">
                <li><a href="/logout">Logout</a></li>
            </c:if>
        </ul>
    </div>
</div>
<%--
<div id="header">
    <div id="logo"></div>
    <div id="rightPartOfHeader">
        <div class="subRightPartOfHeader">
            <a href="?lang=ru">ru</a>
            |
            <a href="?lang=en">en</a>
            <span class="login" style="cursor: pointer"><spring:message code="label.login" /></span>
            <div class="login">
                <form method="POST" action="<c:url value="/j_spring_security_check" />">
                    <table>
                        <tr>
                            <td align="right"><spring:message code="label.login" /></td>
                            <td><input type="text" name="j_username" /></td>
                        </tr>
                        <tr>
                            <td align="right"><spring:message code="label.password" /></td>
                            <td><input type="password" name="j_password" /></td>
                        </tr>
                        <tr>
                            <td align="right"><spring:message code="label.remember" /></td>
                            <td><input type="checkbox" name="_spring_security_remember_me" /></td>
                        </tr>
                        <tr>
                            <td colspan="2" align="right"><input type="submit" value="Login" />
                                <input type="reset" value="Reset" /></td>
                        </tr>
                    </table>
                </form>
            </div>
            <a href="/registration"><spring:message code="label.registration" /></a>
            <form action="search">
                <input type="text" value="<spring:message code="input.search" />" />
                <input type="submit" src="resources/search.png" />
            </form>
        </div>
        <div class="subRightPartOfHeader">
            <table>
                <tr>
                    <td><div class="headerButtons" title="bookAndShed"><spring:message code="header.button.bookAndShed" /></div></td>
                    <td><div class="headerButtons" title="info"><spring:message code="header.button.info" /></div></td>
                    <td><div class="headerButtons" title="premium"><spring:message code="header.button.premium" /></div></td>
                </tr>
            </table>
        </div>
    </div>
    <div id="subPartOfHeader">
        <div class="headerBlockDirects" id="bookAndShed" style="display: block">
            <table>
                <tr>
                    <td><a href= "/findFlight"><div class="headerDirects"><spring:message code="header.direct.booking"/></div></a></td>
                    <td><a href= "/awardFlight"><div class="headerDirects"><spring:message code="header.direct.premFlight"/></div></a></td>
                    <td><a href= "/schedule"><div class="headerDirects"><spring:message code="header.direct.shedule"/></div></a></td>
                    <td><a href= "/bookingChange"><div class="headerDirects"><spring:message code="header.direct.changeBooking"/></div></a></td>
                </tr>
            </table>
        </div>
        <div class="headerBlockDirects" id="info">
            <table>
                <tr>
                    <td><a href= "<c:url value="/flights"><c:param name="sort" value="id"/></c:url>">
                        <div class="headerDirects"><spring:message code="header.direct.flights"/></div></a></td>
                    <td><a href= "/airports"><div class="headerDirects"><spring:message code="header.direct.airports"/></div></a></td>
                    <td><a href= "/cities"><div class="headerDirects"><spring:message code="header.direct.cities" /></div></a></td>
                    <td><a href= "/countries"><div class="headerDirects"><spring:message code="header.direct.countries"/></div></a></td>
                    <td><a href= "/planes"><div class="headerDirects"><spring:message code="header.direct.planes"/></div></a></td>
                </tr>
            </table>
        </div>
        <div class="headerBlockDirects" id="premium">
            <table>
                <tr>
                    <td><a href= "/participation"><div class="headerDirects"><spring:message code="header.direct.participation"/></div></a></td>
                    <td><a href= "/invoicing"><div class="headerDirects"><spring:message code="header.direct.invoicing"/></div></a></td>
                </tr>
            </table>
        </div>
    </div>
    &lt;%&ndash;<h2>Бронирование и расписание</h2>
    <a href="findFlight">Бронирование рейса</a>
    <a href="awardFlight">Премиальный полет</a>
    <a href="schedule">Расписание</a>
    <a href="bookingChange">Изменение бронирований</a>
    <h2>Информация и услуги</h2>
    <a href="flights">Информация о рейсе</a>
    <a href="airports">Информация об аэропорте</a>
    <a href="countries">Информация о странах</a>
    <a href="planes">Информация о самолетах</a>
    <h2>Премиум</h2>
    <a href="participation">Участие в программе</a>
    <a href="invoicing">Выписка со счета</a>
    <h2>Юзверь</h2>
    <c:if test="${showAuth == 1 || showAuth == 2}">
        <a href="">Мои полеты</a>
        <a href="/logout">Выйти из системы</a>
    </c:if>
    <c:if test="${showAuth == 0}">
        <a href="../../login.jsp">Войти</a>
    </c:if>&ndash;%&gt;
</div>--%>
